/**
 * 为Count组件升成action对象
 */
import { ADD_PERSON } from '../contant/person';
import { anyAction } from '../reducer/interface';
//

export const addPerson = (payload: anyAction) => {
    return { type: ADD_PERSON, payload };
};
export const IncrementAsync = (payload: anyAction, time: number) => {
    // eslint-disable-next-line
    return (dispatch: Function) => {
        setTimeout(() => {
            dispatch(addPerson(payload));
        }, time);
    };
};
